home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / tutor / pro11 / manyif.bas < prev    next >
Encoding:
BASIC Source File  |  1990-09-19  |  573 b   |  11 lines

  1. 10 'MANYIF.BAS - Demonstration of stacking multiple IF statements in BASIC
  2. 20 'From the GWBT04 GW-BASIC Tutorial Series
  3. 30 'MANYIF will ask for a number between one and twenty, and tell you if the
  4. 40 'number is MORE than 10, LESS than 10, or EQUAL to 10
  5. 50 '
  6. 60 'Start of main program:
  7. 70 INPUT "Enter a number between one and twenty";TESTNUMBER
  8. 80 IF TESTNUMBER < 10 THEN PRINT "Your number is less than ten!" ELSE IF TESTNUMBER = 10 THEN PRINT "Your number is equal to ten!" ELSE PRINT "Your number is greater than ten!"
  9. 90 END
  10. 100 'End of program: MANYIF.BAS
  11.